﻿

if(DB_ENABLED AND SQL_ENABLED)
    message(STATUS "SQL Data Base is enabled")

    aux_source_directory(./database/sql TYPE_SRC)
	find_package(Qt5Sql REQUIRED)
	include_directories( ${QTDIR}/include/Sql)

    set(TYPE_LIB  Qt5::Sql)
    set(TYPE_SRC ${TYPE_SRC} PARENT_SCOPE)
    set(TYPE_LIB ${TYPE_LIB} PARENT_SCOPE)
else()
    message(STATUS "http is disabled")
    set(TYPE_SRC "" PARENT_SCOPE)
    set(TYPE_LIB "" PARENT_SCOPE)
endif()
